<template>
    <div>
        <div class="we_home">
            <label for="boxinput">微信号</label>
            <input type="text" id="boxinput" v-model="wechat">
        </div>
        <div class="bombtn">
            <router-link to @click.native="tijiao()">提交</router-link>
        </div>
    </div>

  
</template>

<script>
export default {
    components:{
      
    },
      data() {
        return {
          wechat:'',
          id:''
        }
      },
      mounted(){
          this.wechat=this.$route.query.wechat
          this.id=this.$route.query.id
          console.log(this.wechat,this.id)
      },
      methods:{
          tijiao(){
               this.$http.put(this.APIURL_PREFIX+"/api/wap/user/update?wechatId="+this.wechat+'&'+'id='+this.id).then((response) => {
                   console.log(response)
                   if(response.data.code==0){
                       this.$router.push({name:'me_secure'})
                   }
               })
          }
      }
};
</script>

<style scoped>
@import "../../assets/personal/css/me_wechat.css";
</style>